home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Internet Strate…Tools for the Enterprise / Microsoft Internet Strategy & Tools for the Enterprise.iso / content / devel.tls / icp / trash / icpgetst.~ht < prev    next >
Text File  |  1996-04-05  |  18KB  |  459 lines

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
  2. <HTML><HEAD>
  3. <TITLE>Internet Control Pack - Getting Started</TITLE></HEAD>
  4. <!-- The source is a text HTML Document. -->
  5. <BODY BGCOLOR=#FFFFFF >
  6. <FONT FACE=ARIAL SIZE=2>
  7.  
  8. <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
  9. <TR VALIGN=TOP ><TD WIDTH=400>
  10. <A NAME="TOP"><IMG SRC="icpsml1.JPG" WIDTH=350 HEIGHT=50 ALT="Internet Control Pack" BORDER=0></A><P>
  11. </TD>
  12.  
  13. <!-- Topic jumps -->
  14. <TD WIDTH=400><FONT FACE=ARIAL SIZE=2>
  15. <A HREF="#CONTROLS">Controls Summary</A><BR>
  16. <A HREF="#INTERNET">Internet Requirements</A><BR>
  17. <A HREF="#NETWORK">Network Requirements</A><BR>
  18. <A HREF="#INSTALL">Installing the Controls</A><BR>
  19. <A HREF="#TERMS">Common Terminology</A><BR>
  20. <A HREF="#ARCH">Control Architecture</A><BR>
  21. <A HREF="#DOCHEADER">DocHeader Object and Collection</A>
  22.  
  23. </FONT></TD></TR>
  24. </TABLE>
  25.  
  26. <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
  27. <TR><TD COLSPAN=2><IMG SRC="600wline.gif"></TD></TR>
  28. <TR VALIGN=TOP>
  29. <TD WIDTH=120>
  30. <A HREF="deadjump.htm"><IMG src="btnsrch.jpg" WIDTH=110 height=32 border=0 alt="Search"></A><BR>
  31. <A HREF="icpmain.htm"><IMG src="btnicp.jpg" WIDTH=110 height=32 border=0 alt="Internet Control Pack"></A><BR></TD>
  32. <TD WIDTH=470>
  33.  
  34. <!-- Nested table -->
  35.  
  36. <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
  37. <TR VALIGN=TOP ><TD COLSPAN=2 WIDTH=470>
  38.  
  39. <FONT SIZE=4>Getting Started</FONT><P>
  40. <FONT SIZE=2>Welcome to the Internet Control Pack. The present package includes a set of eight ActiveX™ Controls (formerly called OLE controls) that can be used with 32-bit versions of 
  41. Microsoft Access, Visual Basic, Visual C++ and Visual FoxPro. With these controls, you can create applications that work over any network supporting one of the following protocols: TCP/IP, FTP, HTTP, SMTP, and POP3.<P>
  42. Until the Internet Control Pack, creating applications that would access the rich information sources of the Internet required learning about various low level Winsock Application Programming Interfaces (APIs) as well as the various protocols. The Internet Control Pack hides the complexity of creating Internet programs while exposing the versatility and power of ActiveX™ Controls.</FONT>
  43. </TD></TR></TABLE>
  44. <P>
  45. </TR>
  46.  
  47. <!-- New table row -->
  48. <TR VALIGN=TOP>
  49. <TD ALIGN=RIGHT Width=120> </TD>
  50. <TD WIDTH=470>
  51.     <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
  52.     <TR VALIGN=TOP>
  53.     <TD COLSPAN=2 WIDTH=470>
  54.  
  55. <A NAME="CONTROLS"></A><FONT SIZE=3><B>ActiveX Controls Summary</B></FONT><BR>
  56. <IMG SRC="blueline.gif" WIDTH=470>
  57.     </TD>
  58.     </TR>
  59.  
  60.     <!-- New folder row -->
  61.     <TR VALIGN=TOP>
  62.     <TD ALIGN=LEFT WIDTH=20>
  63. <A HREF="vbobjWinsockControl.htm"><IMG SRC="vbfldr11.gif" WIDTH=16 HEIGHT=15 BORDER=0 ALT=""></A>
  64.     </TD>
  65.     <TD WIDTH=450>
  66.     <FONT FACE=ARIAL SIZE=2>
  67. <A HREF="vbobjWinsockControl.htm">WinSock TCP ActiveX Control</A><BR>
  68. Used to stream data between networked machines. This is a connection-based control, meaning the communicating machines have an explicit connection.
  69.     </FONT>
  70.     </TD>
  71.     </TR>
  72.  
  73.     <!-- New folder row -->
  74.     <TR VALIGN=TOP>
  75.     <TD ALIGN=LEFT WIDTH=20>
  76. <A HREF="http://internet/icp/us/icplang/vbobjWinSockUDP.htm"><IMG SRC="vbfldr11.gif" WIDTH=16 HEIGHT=15 BORDER=0 ALT=""></A>
  77.     </TD>
  78.     <TD WIDTH=450>
  79.     <FONT FACE=ARIAL SIZE=2>
  80. <A HREF="http://internet/icp/us/icplang/vbobjWinSockUDP.htm">WinSock UDP ActiveX Control</A><BR>
  81. Used to stream data between machines, but without requiring an explicit connection.
  82.     </FONT>
  83.     </TD>
  84.     </TR>
  85.  
  86.     <!-- New folder row -->
  87.     <TR VALIGN=TOP>
  88.     <TD ALIGN=LEFT WIDTH=20>
  89. <A HREF="vbobjFTPClientControl.htm"><IMG SRC="vbfldr11.gif" WIDTH=16 HEIGHT=15 BORDER=0 ALT=""></A>
  90.     </TD>
  91.     <TD WIDTH=450>
  92.     <FONT FACE=ARIAL SIZE=2>
  93. <A HREF="vbobjFTPClientControl.htm">FTP Client ActiveX Control</A><BR>
  94. Allows you to connect to a remote machine, examine its directories, send and retrieve data using the File Transport Protocol.
  95.     </FONT>
  96.     </TD>
  97.     </TR>
  98.  
  99.     <!-- New folder row -->
  100.     <TR VALIGN=TOP>
  101.     <TD ALIGN=LEFT WIDTH=20>
  102. <A HREF="vbobjHTTPClientControl.htm"><IMG SRC="vbfldr11.gif" WIDTH=16 HEIGHT=15 BORDER=0 ALT=""></A>
  103.     </TD>
  104.     <TD WIDTH=450>
  105.     <FONT FACE=ARIAL SIZE=2>
  106. <A HREF="vbobjHTTPClientControl.htm">HTTP ActiveX Control</A><BR>
  107. The HyperText Transfer Protocol is the protocol used for World Wide Web sites. This control allows you to gather data which can be parsed, filtered, or placed in a database.
  108.     </FONT>
  109.     </TD>
  110.     </TR>
  111.  
  112.     <!-- New folder row -->
  113.     <TR VALIGN=TOP>
  114.     <TD ALIGN=LEFT WIDTH=20>
  115. <A HREF="vbobjHTMLControl.htm"><IMG SRC="vbfldr11.gif" WIDTH=16 HEIGHT=15 BORDER=0 ALT=""></A>
  116.     </TD>
  117.     <TD WIDTH=450>
  118.     <FONT FACE=ARIAL SIZE=2>
  119. <A HREF="vbobjHTMLControl.htm">HTML ActiveX Control</A><BR>
  120. The HyperText Markup Language is used to create World Wide Web documents. This control translates the language into viewable pages, allowing you to create your own custom Web browser. The control currently supports HTML version 2.0.
  121.     </FONT>
  122.     </TD>
  123.     </TR>
  124.  
  125.     <!-- New folder row -->
  126.     <TR VALIGN=TOP>
  127.     <TD ALIGN=LEFT WIDTH=20>
  128. <A HREF="vbobjPopClientOLEControl.htm"><IMG SRC="vbfldr11.gif" WIDTH=16 HEIGHT=15 BORDER=0 ALT=""></A>
  129.     </TD>
  130.     <TD WIDTH=450>
  131.     <FONT FACE=ARIAL SIZE=2>
  132. <A HREF="vbobjPopClientOLEControl.htm">POP ActiveX Control</A><BR>
  133. The Post Office Protocol (version 3) is the most commonly used protocol for email on the Internet. With this control you can create a virtual post office to store email messages.
  134.     </FONT>
  135.     </TD>
  136.     </TR>
  137.  
  138.     <!-- New folder row -->
  139.     <TR VALIGN=TOP>
  140.     <TD ALIGN=LEFT WIDTH=20>
  141. <A HREF="http://internet/icp/us/icplang/vbobjSMTPClientControl.htm"><IMG SRC="vbfldr11.gif" WIDTH=16 HEIGHT=15 BORDER=0 ALT=""></A>
  142.     </TD>
  143.     <TD WIDTH=450>
  144.     <FONT FACE=ARIAL SIZE=2>
  145. <A HREF="http://internet/icp/us/icplang/vbobjSMTPClientControl.htm">SMTP ActiveX Control</A><BR>
  146. The Simple Mail Transport Protocol is used to send email messages on the Internet. With this control you can send email messages from any application.
  147.     </FONT>
  148.     </TD>
  149.     </TR>
  150.  
  151.     <!-- New folder row -->
  152.     <TR VALIGN=TOP>
  153.     <TD ALIGN=LEFT WIDTH=20>
  154. <A HREF="vbobjNNTPClientControl.htm"><IMG SRC="vbfldr11.gif" WIDTH=16 HEIGHT=15 BORDER=0 ALT=""></A>
  155.     </TD>
  156.     <TD WIDTH=450>
  157.     <FONT FACE=ARIAL SIZE=2>
  158. <A HREF="vbobjNNTPClientControl.htm">NNTP ActiveX Control</A><BR>
  159. The NNTP Client control is used to connect to a news server, retrieve a list of available newsgroups and their descriptions, enter a newsgroup, retrieve lists of articles or particular articles.<P>
  160.     </FONT>
  161.     </TD>
  162.     </TR>
  163.     <!-- Close nested table -->
  164.     </TABLE>
  165.  
  166. </TD>
  167. </TR>
  168.  
  169. <!-- New table row -->
  170. <TR VALIGN=TOP>
  171. <TD ALIGN=RIGHT Width=120> </TD>
  172. <TD WIDTH=470>
  173.     <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
  174.     <TR VALIGN=TOP>
  175.     <TD COLSPAN=2 WIDTH=470>
  176.  
  177. <A NAME="INTERNET"></A><FONT SIZE=3><B>Internet Requirements</B></FONT><BR>
  178. <IMG SRC="blueline.gif" WIDTH=470>
  179.     </TD>
  180.     </TR>
  181.  
  182.     <TR VALIGN=TOP>
  183.     <TD COLSPAN=2 WIDTH=470>
  184.     <FONT FACE=ARIAL SIZE=2>
  185. To use these controls on the Internet, you also need the following:
  186.  <UL>
  187. <LI>An Internet provider--a local commercial service that provides you access to the Internet.<BR>
  188. <LI>A modem or ISDN line--a physical connection between you and your Internet provider.<BR>
  189. <LI>Either a PPP (Point to Point Protocol) or a SLIP (Serial Line Internet Protocol)--provided by your Internet service. This allows you to fully access the graphic capabilities of the Internet.</UL><P>
  190. The Internet Control Pack was designed with productivity and ease of use in mind. To this end, all you need--besides the controls--is to connect to your Internet provider, start up your application (Visual Basic, Visual C++, Visual FoxPro, or Microsoft Access), and begin programming.<P>
  191.     </FONT>
  192.     </TD>
  193.     </TR>
  194.     </TABLE>
  195. </TD>
  196. </TR>
  197.  
  198. <!-- New table row -->
  199. <TR VALIGN=TOP>
  200. <TD ALIGN=RIGHT Width=120> </TD>
  201. <TD WIDTH=470>
  202.     <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
  203.     <TR VALIGN=TOP>
  204.     <TD COLSPAN=2 WIDTH=470>
  205.  
  206. <A NAME="NETWORK"></A><FONT SIZE=3><B>Network Requirements</B></FONT><BR>
  207. <IMG SRC="blueline.gif" WIDTH=470>
  208.     </TD>
  209.     </TR>
  210.  
  211.     <TR VALIGN=TOP>
  212.     <TD COLSPAN=2 WIDTH=470>
  213.     <FONT FACE=ARIAL SIZE=2>
  214. If you are using the controls on a local area network, you need to know which protocols are supported on the network. For example, most networks support the TCP/IP protocol, and this allows you to use the WinSock UDP or TCP controls. The following table shows the protocols supported by the controls.
  215. <P>
  216. <TABLE WIDTH=87% BORDER=1 CELLPADDING=5 CELLSPACING=0>
  217. <TR VALIGN=TOP BGCOLOR="#DDDDDD">
  218. <TD><FONT FACE="Arial" SIZE=2><b>Control</b></FONT></TD>
  219. <TD><FONT FACE="Arial" SIZE=2><b>Protocol Supported</b></FONT></TD>
  220. </TR>
  221. <TR VALIGN=TOP>
  222. <TD><FONT FACE="Arial" SIZE=2>FTP</FONT></TD>
  223. <TD><FONT FACE="Arial" SIZE=2>File Transport Protocol (FTP)</FONT></TD>
  224. </TR>
  225. <TR VALIGN=TOP>
  226. <TD><FONT FACE="Arial" SIZE=2>HTML</FONT></TD>
  227. <TD><FONT FACE="Arial" SIZE=2>HTTP</FONT></TD>
  228. </TR>
  229. <TR VALIGN=TOP>
  230. <TD><FONT FACE="Arial" SIZE=2>HTTP</FONT></TD>
  231. <TD><FONT FACE="Arial" SIZE=2>HyperText Transfer Protocol (HTTP)</FONT></TD>
  232. </TR>
  233. <TR VALIGN=TOP>
  234. <TD><FONT FACE="Arial" SIZE=2>NNTP</FONT></TD>
  235. <TD><FONT FACE="Arial" SIZE=2>Network News Transport Protocol (NNTP)</FONT></TD>
  236. </TR>
  237. <TR VALIGN=TOP>
  238. <TD><FONT FACE="Arial" SIZE=2>POP</FONT></TD>
  239. <TD><FONT FACE="Arial" SIZE=2>Post Office Protocol, version 3 (POP3)</FONT></TD>
  240. </TR>
  241. <TR VALIGN=TOP>
  242. <TD><FONT FACE="Arial" SIZE=2>SMTP</FONT></TD>
  243. <TD><FONT FACE="Arial" SIZE=2>Simple Mail Transport Protocol (SMTP)</FONT></TD>
  244. </TR>
  245. <TR VALIGN=TOP>
  246. <TD><FONT FACE="Arial" SIZE=2>WinSock TCP</FONT></TD>
  247. <TD><FONT FACE="Arial" SIZE=2>TCP/IP</FONT></TD>
  248. </TR>
  249. <TR VALIGN=TOP>
  250. <TD><FONT FACE="Arial" SIZE=2>WinSock UDP</FONT></TD>
  251. <TD><FONT FACE="Arial" SIZE=2>TCP/IP</FONT></TD>
  252. </TR>
  253. </TABLE>
  254. <P>
  255.  
  256.     </FONT>
  257.     </TD>
  258.     </TR>
  259.     </TABLE>
  260. </TD>
  261. </TR>
  262.  
  263. <!-- New table row -->
  264. <TR VALIGN=TOP>
  265. <TD ALIGN=RIGHT Width=120> </TD>
  266. <TD WIDTH=470>
  267.     <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
  268.     <TR VALIGN=TOP>
  269.     <TD COLSPAN=2 WIDTH=470>
  270.  
  271. <A NAME="INSTALL"></A><FONT SIZE=3><B>Installing the Controls</B></FONT><BR>
  272. <IMG SRC="blueline.gif" WIDTH=470>
  273.     </TD>
  274.     </TR>
  275.  
  276.     <TR VALIGN=TOP>
  277.     <TD COLSPAN=2 WIDTH=470>
  278.     <FONT FACE=ARIAL SIZE=2>
  279. Methods to install the controls into the toolbox differ according to the application you are using.<P>
  280. In <b>Visual Basic</b>:
  281. <OL>
  282. <LI>Click the Tools menu, then click Custom Controls.
  283. <LI>Under Available Controls, select the control you want to use.
  284. <LI>Click OK.
  285. </OL>
  286. <P>
  287.  
  288. In <b>Visual FoxPro</b>:
  289. <OL>
  290. <LI>Click the Tools menu, then click Options.
  291. <LI>Click the Controls tab, then click the OLE controls option. Be sure the Controls check box is selected.
  292. <LI>Under Selected, select the controls you wish to install.
  293. <LI>Click Set as Default if you'd like to make these controls available in every Visual FoxPro session.
  294. <LI>Click OK.
  295. </OL>
  296. <P>
  297.  
  298. For <b>Microsoft Access</b>:
  299. <P>
  300. While in form Design view:
  301. <OL>
  302. <LI>Click the Insert menu, then click Custom Control... . 
  303. <LI>Select the custom control you want to insert.
  304. <LI>Click OK.
  305. </OL>
  306. <P>
  307.  
  308. If the custom control does not appear in the custom control dialog, it may not be correctly registered on your machine.<P>
  309. To register a custom control:
  310. <OL>
  311. <LI>Click the Tools menu, then click Custom Controls... .
  312. <LI>Click the Register button and locate the custom control .OCX or .DLL file to register.
  313. <LI>Click OK.
  314. </OL>
  315. <P>
  316.  
  317. In <b>Visual C++</b>:<P>
  318. Note: OLE controls are added to individual Visual C++ projects.  To use an OLE control in multiple projects, you must add it to each project in which you want to use it.
  319. <OL>
  320. <LI>From the Insert menu, choose Component, <B>or</B>  click the Component Gallery button.  The Component Gallery dialog box appears.
  321. <LI>In Component Gallery, select the OLE Controls pane (page, tab).
  322. <LI>Select the control and click the Insert button.  The Confirm Classes dialog box appears.  This dialog lists the names for the C++ class, header file, and implementation file for each control begin added.
  323. <LI>In the Confirm Classes dialog box, click OK.  The control is added to the control pallet in the dialog template editor, and header and implementation files are added to the current project for this control.
  324. </OL>
  325.     </FONT>
  326.     </TD>
  327.     </TR>
  328.     </TABLE>
  329.  
  330. </TD>
  331. </TR>
  332.  
  333. <!-- New table row -->
  334. <TR VALIGN=TOP>
  335. <TD ALIGN=RIGHT Width=120> </TD>
  336. <TD WIDTH=470>
  337.     <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
  338.     <TR VALIGN=TOP>
  339.     <TD COLSPAN=2 WIDTH=470>
  340.  
  341. <A NAME="TERMS"></A><FONT SIZE=3><B>Common Terminology</B></FONT><BR>
  342. <IMG SRC="blueline.gif" WIDTH=470>
  343.     </TD>
  344.     </TR>
  345.  
  346.     <TR VALIGN=TOP>
  347.     <TD COLSPAN=2 WIDTH=470>
  348.     <FONT FACE=ARIAL SIZE=2>
  349. The following is a short list of terms that occur in the documentation:<P>
  350. <b>Client:</b>  An application designed to connect to a remote machine and access data on the other machine. Part of a Client/Server relationship.<P>
  351.  
  352. <b>Data Streaming:</b>  The transfer of data in a continuous stream of bytes, allowing transactions such as real-time sound transmission. Data streaming also allows you to efficiently pour data into a file, database, or other container.<P>
  353.  
  354. <b>MIME:</b>  The Multipurpose Internet Mail Protocol communicates the type of data that is being sent in an electronic message. For example, a message can contain sound, video, images, as well as text. <P>
  355. <b>Port Number:</b>  Internet applications use a specific port number to communicate through. There are common port numbers assigned to types of applications. For example, HTTP servers (used for retrieving HTML documents) usually send and receive data through port 80.<P>
  356.  
  357. <b>Protocol:</b>  A defined convention used to communicate between applications. For example, the HTTP protocol specifies how HTTP messages should be sent and recieved.<P>
  358.  
  359. <b>RFC:</b>  A Request For Comments document (as in "RFC 977") is authored by an individual or group involved in the development of the Internet. Such documents define standards or propose new standards for Internet protocols. These documents are available for downloading from various sites. See the Internet References topic for specific FTP addresses.<P>
  360.  
  361. <b>Server:</b>  An application that provides services and data for a Client application that resides on a remote machine.<P>
  362.  
  363.     </FONT>
  364.     </TD>
  365.     </TR>
  366.     </TABLE>
  367.  
  368. </TD>
  369. </TR>
  370.  
  371. <!-- New table row -->
  372. <TR VALIGN=TOP>
  373. <TD ALIGN=RIGHT Width=120> </TD>
  374. <TD WIDTH=470>
  375.     <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
  376.     <TR VALIGN=TOP>
  377.     <TD COLSPAN=2 WIDTH=470>
  378.  
  379. <A NAME="ARCH"></A><FONT SIZE=3><B>Control Architecture</B></FONT><BR>
  380. <IMG SRC="blueline.gif" WIDTH=470>
  381.     </TD>
  382.     </TR>
  383.  
  384.     <TR VALIGN=TOP>
  385.     <TD COLSPAN=2 WIDTH=470>
  386.     <FONT FACE=ARIAL SIZE=2>
  387.  
  388. The Internet Control Pack is designed as a family of controls with a few common interfaces that allow you to develop applications quickly. Famliarizing yourself with these common interfaces can save you time later.<P>
  389.  
  390. <b>DocInput and DocOutput Objects</b><P>
  391. An innovative feature of the Internet Control Pack are the <A HREF="http://internet/icp/us/icplang/vbobjDocInputObject.htm">DocInput object</A> and the <A HREF="http://internet/icp/us/icplang/vbobjDocOutputObject.htm">DocOutput object</A>. These objects, accessible from all controls except the WinSock controls, have properties and methods that allow you to stream data from one control to another. For example, using the DocOutput object, you can automatically stream data from a HTTP server to an FTP control when you wish to archive the data on an FTP server. For more information see <A HREF="http://internet/icp/us/icplang/vbmscDocInputOverviews.htm">Using the DocInput and DocOutput Objects.</A><P>
  392.  
  393. <b>icError Object and Collection</b><P>
  394.  
  395. Another common object is the <A HREF="http://internet/icp/us/icplang/vbobjicErrorObject.htm">icError object</A> and <A HREF="http://internet/icp/us/icplang/vbcolicpErrors.htm">icErrors collection</A>. The icError object stores error messages that originate from a network server. As errors may be numerous, the icError object can be stored in a collection for later retrieval.<P>
  396.  
  397.     </FONT>
  398.     </TD>
  399.     </TR>
  400.     </TABLE>
  401.  
  402. </TD>
  403. </TR>
  404.  
  405. <!-- New table row -->
  406.  
  407. <TR VALIGN=TOP>
  408. <TD ALIGN=RIGHT Width=120> </TD>
  409. <TD WIDTH=470>
  410.     <TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
  411.     <TR VALIGN=TOP>
  412.     <TD COLSPAN=2 WIDTH=470>
  413.  
  414. <A NAME="DOCHEADER"></A><FONT SIZE=3><B>DocHeader Object and Collection</B></FONT><BR>
  415. <IMG SRC="blueline.gif" WIDTH=470>
  416.     </TD>
  417.     </TR>
  418.  
  419.     <TR VALIGN=TOP>
  420.     <TD COLSPAN=2 WIDTH=470>
  421.     <FONT FACE=ARIAL SIZE=2>
  422.  
  423. Some protocols, such as the MIME and the SMTP, require you to create a collection of document headers.<P>
  424. For example, when sending a mail message, you will see these headers:<P>
  425.  
  426. From: Jonne@Maui.com<BR>
  427. To: TomS@Haleakala.com<BR>
  428. Subject: Run to the Sun<BR>
  429. Message-Id: 9601138242.AA824256464@mail.Maui.com<P>
  430.  
  431. Each line in the above example would be contained in a single <A HREF="http://internet/icp/us/icplang/vbobjDocHeaderObject.htm">DocHeader object</A>, and all four lines would be part of a <A HREF="http://internet/icp/us/icplang/vbcolDocHeadersCollection.htm">DocHeaders collection</A>.<P>
  432.  
  433. A DocHeader object has two properties: the <A HREF="http://internet/icp/us/icplang/vbproICPName.htm">Name property</A>, and the <A HREF="http://internet/icp/us/icplang/vbproValueDocHeader.htm">Value property</A>. The following code shows how you can create a simple header by first creating an object variable of type DocHeaders, instantiating the object, and then adding a DocHeader object to the collection.<P>
  434.  
  435. <BLOCKQUOTE>
  436.  Dim dhHeads As DocHeaders ' Object variable.<P>
  437.  Set dhHeads = New DocHeaders ' Instantiate object.<P>
  438.  dhHeads.Add "From", "Jonne@Maui.com " ' Add Header.<P>
  439.  ' Creates the header "From: Jonne@Maui.com"<P>
  440.  ' The DocHeader object adds the colon for you.<P>
  441. </BLOCKQUOTE>
  442.  
  443.     </FONT>
  444.     </TD>
  445.     </TR>
  446.     </TABLE>
  447.  
  448. </TD>
  449. </TR></TABLE>
  450.  
  451. <HR>
  452. <FONT SIZE=2>
  453. <A HREF="cpyright.htm">© 1996 by Microsoft Corporation</a>. 
  454. </FONT>
  455.  
  456. </FONT>
  457. </BODY></HTML>
  458.  
  459.